package com.weiaibenpao.demo.chislim.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by Administrator on 2018/1/8.
 */

public class Comment implements Parcelable{

    /**
     * userName : じ☆ve天狠ぷ藍
     * preUserName :
     * preUserId : 0
     * id : 448
     * userId : 172
     * commentTime : 1510120943252
     * humorId : 463
     * parentId : 0
     * comText : 赞
     * isDelete : N
     */

    private String userName;
    private String preUserName;
    private int preUserId;
    private int id;
    private int userId;
    private long commentTime;
    private int humorId;
    private int parentId;
    private String comText;
    private String isDelete;

    protected Comment(Parcel in) {
        userName = in.readString();
        preUserName = in.readString();
        preUserId = in.readInt();
        id = in.readInt();
        userId = in.readInt();
        commentTime = in.readLong();
        humorId = in.readInt();
        parentId = in.readInt();
        comText = in.readString();
        isDelete = in.readString();
    }

    public static final Creator<Comment> CREATOR = new Creator<Comment>() {
        @Override
        public Comment createFromParcel(Parcel in) {
            return new Comment(in);
        }

        @Override
        public Comment[] newArray(int size) {
            return new Comment[size];
        }
    };

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPreUserName() {
        return preUserName;
    }

    public void setPreUserName(String preUserName) {
        this.preUserName = preUserName;
    }

    public int getPreUserId() {
        return preUserId;
    }

    public void setPreUserId(int preUserId) {
        this.preUserId = preUserId;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public long getCommentTime() {
        return commentTime;
    }

    public void setCommentTime(long commentTime) {
        this.commentTime = commentTime;
    }

    public int getHumorId() {
        return humorId;
    }

    public void setHumorId(int humorId) {
        this.humorId = humorId;
    }

    public int getParentId() {
        return parentId;
    }

    public void setParentId(int parentId) {
        this.parentId = parentId;
    }

    public String getComText() {
        return comText;
    }

    public void setComText(String comText) {
        this.comText = comText;
    }

    public String getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(String isDelete) {
        this.isDelete = isDelete;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(userName);
        dest.writeString(preUserName);
        dest.writeInt(preUserId);
        dest.writeInt(id);
        dest.writeInt(userId);
        dest.writeLong(commentTime);
        dest.writeInt(humorId);
        dest.writeInt(parentId);
        dest.writeString(comText);
        dest.writeString(isDelete);
    }
}
